/* Color Variables - Based on GaiaLith Logo */
:root {
    --primary-teal: #1B4332;
    --secondary-teal: #2D5A3D;
    --accent-orange: #FF6B35;
    --light-teal: #40916C;
    --light-grey: #F8F9FA;
    --dark-text: #212529;
    --logo-teal: #1B4332;
    --bg-color: #fcf6e6;
    --warning-orange: #FF6B35;
}

/* Base Styles */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);

}

.bg-secondary {
    background-color: var(--bg-color) !important;
}

/* Custom Bootstrap Overrides */
.text-primary {
    color: var(--primary-teal) !important;
}

.bg-primary {
    background-color: var(--primary-teal) !important;
}

.btn-primary-custom {
    background: linear-gradient(45deg, var(--primary-teal), var(--secondary-teal));
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.4s ease-in-out;
    will-change: transform;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(27, 94, 32, 0.3);
    color: white;
    text-decoration: none;
}

/* Typography */
.hero-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
    transition: all 0.4s ease-in-out;
    will-change: transform, text-shadow;
}

.section-title:hover {
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.cta-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

.section-label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-subtitle {
    color: var(--accent-orange);
    font-size: 1.2rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.3rem;
    opacity: 0.95;
}

/* Layout */
.section-padding {
    padding: 80px 0;
}

/* Navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease-in-out;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--dark-text);
    transition: color 0.4s ease-in-out;
    margin: 0 10px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-teal) !important;
}

/* Mega Menu for Application Solutions */
.navbar-nav .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    margin-top: 10px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    min-width: 600px;
    padding: 1.5rem;
}

.navbar-nav .nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.mega-menu-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.mega-menu-item:hover {
    background-color: var(--light-grey);
    text-decoration: none;
}

.mega-menu-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.375rem;
    margin-right: 1rem;
}

.mega-menu-item .item-content h6 {
    font-weight: 600;
    color: var(--primary-teal);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/bg-home.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(27, 94, 32, 0.4), rgba(46, 125, 50, 0.3));
    z-index: 2;
}

.cta-section .container {
    position: relative;
    z-index: 3;
}

.hero-section .container {
    position: relative;
    z-index: 3;
}

.hero-buttons .btn {
    margin: 5px;
}

/* Cards */
.service-card,
.feature-card,
.blog-card {
    transition: all 0.4s ease-in-out;
    border: none !important;
    overflow: hidden;
    will-change: transform;
}

.service-card:hover,
.feature-card:hover,
.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2) !important;
}

.service-card .card-img-top,
.blog-card .card-img-top {
    height: 320px;
    object-fit: contain;
    transition: transform 0.4s ease-in-out;
    will-change: transform;
}

.service-card:hover .card-img-top,
.blog-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Product Category Card */
.product-category-card {
    transition: all 0.4s ease-in-out;
    will-change: transform, box-shadow;
}

.product-category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

.product-category-card .card-img-top {
    height: 280px;
    object-fit: contain;
}

.product-category-card .card-body {
    display: flex;
    flex-direction: column;
}

/* Process Section */
.process-step {
    position: relative;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    transition: all 0.4s ease-in-out;
    will-change: transform;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}



.process-number {
    position: absolute;
    top: -20px;
    left: 2rem;
    background: var(--accent-orange);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.process-icon {
    margin-top: 20px;
}

/* Progress Bars */
.progress {
    height: 8px;
    border-radius: 10px;
    background-color: #e9ecef;
}

.progress-bar-custom {
    background: linear-gradient(90deg, var(--primary-teal), var(--secondary-teal));
    border-radius: 10px;
    transition: width 3s ease-in-out;
}

/* Statistics Section */
.statistics-section {
    background: linear-gradient(135deg, var(--primary-teal), var(--secondary-teal));
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-orange);
    font-family: 'Poppins', sans-serif;
}

.stat-item h5 {
    font-weight: 600;
    margin-top: 10px;
}

/* CTA Section */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/cta.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 8px 0;
    font-weight: 500;
}

/* Contact Info Cards */
.contact-info .card {
    transition: all 0.4s ease-in-out;
    will-change: transform;
}

.contact-info .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Footer Styling */
.text-warning {
    color: var(--accent-orange) !important;
}

.breadcrumb-item a {
    color: var(--primary-teal);
    text-decoration: none;
}

.nav-tabs .nav-link {
    color: var(--dark-text);
}

.footer-section h5.text-warning {
    color: var(--accent-orange) !important;
}

.footer-section .contact-info i.text-warning {
    color: var(--accent-orange) !important;
}

.footer-section img {
    filter: brightness(0) invert(1) drop-shadow(2px 2px 4px rgba(255, 107, 53, 0.3));
}

/* Logo Enhancement */
.navbar-brand img {
    transition: transform 0.4s ease-in-out;
    filter: drop-shadow(2px 2px 4px rgba(27, 67, 50, 0.2));
    will-change: transform;
}

.navbar-brand:hover img {
    transform: scale(1.05);
    filter: drop-shadow(3px 3px 6px rgba(27, 67, 50, 0.3));
}

/* Social Links */
.social-links a {
    transition: all 0.4s ease-in-out;
    will-change: color, transform;
}

.social-links a:hover {
    color: var(--accent-orange) !important;
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 1s ease-in-out forwards;
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1.2s ease-in-out forwards;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem !important;
    }

    .section-title {
        font-size: 2rem !important;
    }

    .cta-title {
        font-size: 2rem !important;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .process-step {
        margin-bottom: 3rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem !important;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.8rem !important;
    }
}

/* Fix CTA section paragraph text visibility */
.cta-section p {
    color: white !important;
}

/* BESS Banner Styles */
.carousel,
.carousel-item {
    position: relative;
}

.banner-img {
    height: 650px;
    object-fit: cover;
}

.banner-overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    /* Ensure content is above the images */
}

.carousel-indicators [data-bs-target] {
    background-color: var(--primary-teal);
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.text-content-box {
    border-radius: 8px;
}

.form-container {
    transition: box-shadow 0.3s ease-in-out;
    background-color: #0841235a;
    border-radius: 8px;
}

.form-container:hover {
    box-shadow: 0 10px 25px rgba(245, 245, 245, 0.5);
}

.form-container h3 {
    position: relative;
    display: block;
    width: fit-content;
    margin: 0 auto 1.5rem auto;
}

.form-container h3::after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #2e7d32, #66bb6a);
    margin-top: 8px;
    border-radius: 2px;
}

.form-container .form-control {
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid #a7d7a9 !important;
    border-radius: 0 !important;
    color: #fff !important;
    padding: 8px 0 !important;
    box-shadow: none !important;
}

.form-container .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.form-container .form-control:focus {
    border-bottom-color: #fff !important;
}

.view-products-btn {
    background: linear-gradient(90deg, #2e7d32, #66bb6a);
    color: #fff !important;
    padding: 12px 30px !important;
    border-radius: 30px !important;
    border: none !important;
    transition: all 0.3s ease;
    font-weight: bold;
}

.view-products-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}